#!/bin/bash -e

# See comment in bootstrap_fun

source scripts/common
source scripts/bootstrap_fun

# scripts/common provides sbtRepositoryConfig
sbtArgs="-ivy $IVY2_DIR -Dsbt.override.build.repos=true -Dsbt.repository.config=$sbtRepositoryConfig"

generateRepositoriesConfig $integrationRepoUrl

determineScalaVersion

removeExistingBuilds $integrationRepoUrl

if [ ! -z "$STARR_REF" ]; then
  buildStarr
fi

buildLocker

buildQuick

invokeQuick testAll
testStability
